package com.party.core.model.crowdfund;

import com.party.core.model.BaseModel;

import java.util.Objects;

public class SupportTransferDetail extends BaseModel {

    //转移编号
    private String supportTransferId;
    //支持者编号
    private String supportId;

    public SupportTransferDetail() {
    }

    public SupportTransferDetail(String supportTransferId, String supportId) {
        this.supportTransferId = supportTransferId;
        this.supportId = supportId;
    }
    public String getSupportTransferId() {
        return supportTransferId;
    }

    public void setSupportTransferId(String supportTransferId) {
        this.supportTransferId = supportTransferId;
    }

    public String getSupportId() {
        return supportId;
    }

    public void setSupportId(String supportId) {
        this.supportId = supportId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        SupportTransferDetail that = (SupportTransferDetail) o;
        return Objects.equals(supportTransferId, that.supportTransferId) &&
                Objects.equals(supportId, that.supportId);
    }

    @Override
    public int hashCode() {

        return Objects.hash(super.hashCode(), supportTransferId, supportId);
    }

    @Override
    public String toString() {
        return "SupportTransferDetail{" +
                "supportTransferId='" + supportTransferId + '\'' +
                ", supportId='" + supportId + '\'' +
                '}';
    }
}
